package com.boarsoft.boar.auth;

import com.boarsoft.bean.ReplyInfo;

public interface TokenAuth {
	/**
	 * 
	 * @param token
	 * @param module
	 * @return user / text message
	 * @throws Exception
	 */
	ReplyInfo<Object> check(String token, String module) throws Exception;

	/**
	 * 
	 * @param token
	 * @return user / text message
	 */
	ReplyInfo<Object> check(String token) throws Exception;

	/**
	 * 登出
	 * 
	 * @param code
	 * @param token
	 * @return
	 */
	void logout(String code, String token);
}
